package com.cgc.shop.action;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.cgc.shop.model.Account;

@Controller("accountAction")
@Scope("prototype")
public class AccountAction extends BaseAction<Account> {
	public String save() {
		accountService.save(model);
		return "testAction";
	}
	public String delete() {
		accountService.delete(model.getId());
		return "testAction";
	}
	public String update() {
		accountService.update(model);
		return "testAction";
	}
	public String query() {
		System.out.println(accountService.query());
		jsonList = accountService.query();
		return "query";
	}
}
